{% raw %}
benchmark_id = '1a.1'
# Parameters
benchmark_id = "1d.1"
from IPython.display import display_markdown
display_markdown(f'''
# Benchmark { benchmark_id } Results
All results for the [{ benchmark_id } benchmark specification](../../benchmarks/benchmark1.ipynb/).
''', raw=True)
# To generate the comparison notebooks use:
#
# papermill template.ipynb benchmark{version}.ipynb -f bm{version}.yaml
#
from IPython.display import HTML
HTML('''<script>
code_show=true;
function code_toggle() {
if (code_show){
$('div.input').hide();
$('div.prompt').hide();
} else {
$('div.input').show();
$('div.prompt').show();
}
code_show = !code_show
}
$( document ).ready(code_toggle);
</script>
<form action="javascript:code_toggle()"><input type="submit" value="Code Toggle"></form>''')
#from IPython.display import HTML, display
#from time import sleep
#display(HTML("""
#<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
#"""))
#sleep(0.1)
from IPython.display import HTML, display, display_markdown
from time import sleep
#import logging
#logging.basicConfig(format='%(asctime)s - %(message)s', level=logging.DEBUG)
display(HTML("""
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
"""))
sleep(0.1)
from pfhub.main import line_plot, levelset_plot, get_table_data_style, plot_order_of_accuracy, get_result_data, efficiency_plot
#import itables.interactive
from itables import init_notebook_mode
init_notebook_mode(all_interactive=False)
line_plot(
data_name='free_energy',
benchmark_id=benchmark_id,
layout=dict(
x=r'<i>t</i>',
y=r'ℱ',
title="Free Energy v Time",
log_x=True,
log_y=True
)
)
efficiency_plot(benchmark_id)
display_markdown(f'''
# Table of Results
Table of { benchmark_id } benchmark result uploads.
''', raw=True)
## Currently switching off interactive tables as these are not converted to HTML properly.
## This might improve when jupyter-nbcovert is updated to a later version.
init_notebook_mode(all_interactive=False)
get_table_data_style(benchmark_id)